const fs = require("fs");
const path = require("path");
var ejs = require('ejs');

let filePath = path.join(__dirname, "element.txt");
let content = fs.readFileSync(filePath, 'utf-8');

content = content.replace(/\r\n/g, "").replace(/ /g, '');
let arr = content.split(',');
// arr.forEach(element => {
//     console.log(element);
// });

let tlp= fs.readFileSync(path.join(__dirname, "element.ejs"),'utf-8');
//console.log(tlp);
//console.log(ejs.render(tlp, {items:arr}));



//console.log(ElementUI);
// let arr = [];
// for (const key in ElementUI) {
//   if (ElementUI.hasOwnProperty(key)) {
//     if ((/^[A-Z][A-z0-9]*$/).test(key)) {
//       arr.push(key);
//     }
//   }
// }
// console.log(arr.sort().join(',\r\n'));

